﻿Ext.define('SenchaApp.model.Car', {
    extend: 'Ext.data.Model',
    fields: ['Id', 'Name', 'BrandName', 'Model', 'CarType', 'Price'],
    proxy: {
        type: 'ajax',
        api: {
            read: '/api/Sencha/GetFeaturedCars',
            update: '/api/Sencha/UpdateCar'
        },
        reader: {
            type: 'json',
            successProperty: 'success'
        }
    }
});